package com.tanhua.domain.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

/**
 * wzp 2021/6/23 10:58
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "voice")
public class Voice implements Serializable {

    private static final long serialVersionUID = 2053307372139772838L;

    private ObjectId id;
    private Long vid=0L; //自增长序号
    private Long userId; //发送人id
    private String gender; //发送人性别
    private Integer age; //发送人年龄
    private String soundUrl; //语音地址
    private Long created;//生成时间
    private Integer state=1;//语音状态,默认为1，未读状态，0为已读状态
}
